-- 32 bit version program counter
-- bowmanb

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity pcExt is
  port
    (
      -- Write data input port    
      imm   : in  std_logic_vector (15 downto 0);
      -- read port 2
      pcout  : out std_logic_vector (31 downto 0)
      );
end pcExt;

architecture pcExt_arch of pcExt is
   signal reg : std_logic_vector(31 downto 0);
begin
    reg ( 1 downto 0) <= "00";
    reg (17 downto 2) <= imm;
    reg (31 downto 18) <= (others => imm(15));
    pcout <= reg;     

end pcExt_arch;
